import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
// 使用路由
import { RouterProvider } from "react-router-dom";
import router from "./router";

// 使用redux
import { Provider } from "react-redux";
import store from './store';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <React.StrictMode>
        <Provider store={store}>
            <RouterProvider router={router} />
        </Provider>
    </React.StrictMode>
);


